package com.gxc.dbcore.util;

public class CompareItem {

	private String columnName;

	private Integer compareType;

	private Object compareValue;

	/**
	 * 扩展比较值，在between条件中会用到
	 */
	private Object compareValue2;

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public Integer getCompareType() {
		return compareType;
	}

	public void setCompareType(Integer compareType) {
		this.compareType = compareType;
	}

	public Object getCompareValue() {
		return compareValue;
	}

	public void setCompareValue(Object compareValue) {
		this.compareValue = compareValue;
	}

	public Object getCompareValue2() {
		return compareValue2;
	}

	public void setCompareValue2(Object compareValue2) {
		this.compareValue2 = compareValue2;
	}

	public CompareItem() {
	}

	public CompareItem(String columnName, Integer compareType) {
		this.setColumnName(columnName);
		this.setCompareType(compareType);
	}

	public CompareItem(String columnName, Integer compareType,
			Object compareValue) {
		this.setColumnName(columnName);
		this.setCompareType(compareType);
		this.setCompareValue(compareValue);
	}

	public CompareItem(String columnName, Integer compareType,
			Object compareValue, Object compareValue2) {
		this.setColumnName(columnName);
		this.setCompareType(compareType);
		this.setCompareValue(compareValue);
		this.setCompareValue2(compareValue2);
	}
}
